package cn.bonoon.controllers.smm;

import java.util.Date;

import cn.bonoon.kernel.annotations.condition.ConditionField;
import cn.bonoon.kernel.query.PageCondition;
import cn.bonoon.kernel.web.annotations.condition.ConditionContent;
import cn.bonoon.kernel.web.annotations.condition.ConditionStyle;

@ConditionStyle(2)
public class LoginCondition extends PageCondition {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7605109263327884508L;

	@ConditionContent(value = "用户名称", ordinal = 0)
	private String searchLoginName;

	@ConditionContent(value = "时间  从", ordinal = 2)
	private Date searchStartLoginAt;

	@ConditionContent(value = "到", ordinal = 3)
	private Date searchEndLoginAt;

	@ConditionContent(value = "登录IP", ordinal = 1)
	private String searchLoginIp;

	/**
	 * 
	 * 附加信息，如果登录失败，则显示登录失败的原因， 如果登录成功，则显示登录者的浏览器相关的信息
	 * 
	 */
	@ConditionField("additionalInfo")
	private String searchAdditionalInfo;

	public String getSearchLoginName() {
		return searchLoginName;
	}

	public void setSearchLoginName(String searchLoginName) {
		this.searchLoginName = searchLoginName;
	}

	public String getSearchLoginIp() {
		return searchLoginIp;
	}

	public void setSearchLoginIp(String searchLoginIp) {
		this.searchLoginIp = searchLoginIp;
	}

	public String getSearchAdditionalInfo() {
		return searchAdditionalInfo;
	}

	public void setSearchAdditionalInfo(String searchAdditionalInfo) {
		this.searchAdditionalInfo = searchAdditionalInfo;
	}

	public Date getSearchStartLoginAt() {
		return searchStartLoginAt;
	}

	public void setSearchStartLoginAt(Date searchStartLoginAt) {
		this.searchStartLoginAt = searchStartLoginAt;
	}

	public Date getSearchEndLoginAt() {
		return searchEndLoginAt;
	}

	public void setSearchEndLoginAt(Date searchEndLoginAt) {
		this.searchEndLoginAt = searchEndLoginAt;
	}

}
